package cn.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
    * 商品表（SPU）
    */
@ApiModel(value="商品表（SPU）")
@Getter
@Setter
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_product")
public class Product implements Serializable {
    /**
     * 商品编号
     */
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value="商品编号")
    private Integer id;

    /**
     * 商品名称
     */
    @TableField(value = "`name`")
    @ApiModelProperty(value="商品名称")
    private String name;

    /**
     * 副标题
     */
    @TableField(value = "caption")
    @ApiModelProperty(value="副标题")
    private String caption;

    /**
     * 商品属性列表
     */
    @TableField(value = "attribute_list")
    @ApiModelProperty(value="商品属性列表")
    private String attributeList;

    /**
     * 类别编号
     */
    @TableField(value = "category_id")
    @ApiModelProperty(value="类别编号")
    private Integer categoryId;

    /**
     * 品牌编号
     */
    @TableField(value = "brand_id")
    @ApiModelProperty(value="品牌编号")
    private Integer brandId;

    /**
     * 状态 1上架  2下架
     */
    @TableField(value = "`status`")
    @ApiModelProperty(value="状态 1上架  2下架")
    private Integer status;

    /**
     * 售后服务
     */
    @TableField(value = "service")
    @ApiModelProperty(value="售后服务")
    private String service;

    /**
     * 备注
     */
    @TableField(value = "info")
    @ApiModelProperty(value="备注")
    private String info;

    /**
     * 县区编号
     */
    @TableField(value = "country_id")
    @ApiModelProperty(value="县区编号")
    private Integer countryId;

    /**
     * 具体产地
     */
    @TableField(value = "addr")
    @ApiModelProperty(value="具体产地")
    private String addr;

    /**
     *  创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value=" 创建时间")
    private LocalDateTime createTime;

    /**
     *  更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value=" 更新时间")
    private LocalDateTime updateTime;

    private static final long serialVersionUID = 1L;
}